﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SMTC.Model.Domain;
using SMTC.Model.Model;
using SMTC.BO.Plant;

/// <summary>
/// Summary description for PlantViewDataSource
/// </summary>
public class PlantViewDataSource
{
	public PlantViewDataSource()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    private PlantQueryServices _services = new PlantQueryServices();

    public List<SMT_PlantModel> Select(string PlantName, string ModifyPerson, string startTime, string endTime)
    {
        DateTime startTime1 = Convert.ToDateTime(startTime);
        DateTime endTime1 = Convert.ToDateTime(endTime);
        return _services.GetPlantList(PlantName, ModifyPerson, startTime1, endTime1);
    }
}